{
	"info": {
		"_postman_id": "7e737123-3a01-4482-b93f-3af137d129a6",
		"name": "if_test",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "34183787"
	},
	"item": [
		{
			"name": "account",
			"item": [
				{
					"name": "Registration",
					"item": [
						{
							"name": "403 - auth fail",
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"Angyrban\",    \r\n    \"lastName\": \"Dair\",\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "localhost:3000/registration",
									"host": [
										"localhost"
									],
									"port": "3000",
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "409 - already exist",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 409\", function () {\r",
											"    pm.response.to.have.status(409);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"Angyrban\",    \r\n    \"lastName\": \"Dair\",\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - firname null",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"\",    \r\n    \"lastName\": \"Dair\",\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - lastname null",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"fasd\",    \r\n    \"lastName\": \"\",\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - lastname space",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"asdfa\",    \r\n    \"lastName\": \"  \",\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - firstname space",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"   \",    \r\n    \"lastName\": \"fasd\",\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - email null",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"asdfa\",    \r\n    \"lastName\": \"fdas\",\r\n    \"email\": \"\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - email space",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"asdfa\",    \r\n    \"lastName\": \"fdas\",\r\n    \"email\": \"   \",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - email incorrect",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"asdfa\",    \r\n    \"lastName\": \"fdas\",\r\n    \"email\": \"фыва\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - pswrd null",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"asdfa\",    \r\n    \"lastName\": \"fdas\",\r\n    \"email\": \"mail@mail.ru\",\r\n    \"password\": \"\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 - pswrd space",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"firstName\": \"asdfa\",    \r\n    \"lastName\": \"fdas\",\r\n    \"email\": \"mail@mail.ru\",\r\n    \"password\": \"   \"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/registration",
									"host": [
										"{{ip}}"
									],
									"path": [
										"registration"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Login",
					"item": [
						{
							"name": "200 no auth",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 200\", function () {\r",
											"    pm.response.to.have.status(200);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/login",
									"host": [
										"{{ip}}"
									],
									"path": [
										"login"
									]
								}
							},
							"response": []
						},
						{
							"name": "200 auth",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 200\", function () {\r",
											"    pm.response.to.have.status(200);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/login/1",
									"host": [
										"{{ip}}"
									],
									"path": [
										"login",
										"1"
									]
								}
							},
							"response": []
						},
						{
							"name": "401 incorrect pswrd",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 401\", function () {\r",
											"    pm.response.to.have.status(401);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/login",
									"host": [
										"{{ip}}"
									],
									"path": [
										"login"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "GetById",
					"item": [
						{
							"name": "401 no auth",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 401\", function () {\r",
											"    pm.response.to.have.status(401);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/accounts/1",
									"host": [
										"{{ip}}"
									],
									"path": [
										"accounts",
										"1"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 invalid param",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/accounts/0",
									"host": [
										"{{ip}}"
									],
									"path": [
										"accounts",
										"0"
									]
								}
							},
							"response": []
						},
						{
							"name": "404 cannot found id",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 404\", function () {\r",
											"    pm.response.to.have.status(404);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/accounts/41234",
									"host": [
										"{{ip}}"
									],
									"path": [
										"accounts",
										"41234"
									]
								}
							},
							"response": []
						},
						{
							"name": "200",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"TEST JSON\", function () {",
											"    var responseJSON = pm.response.json();",
											"    ",
											"    // Checking the structure of the JSON object",
											"    pm.expect(responseJSON).to.be.an('object');",
											"    pm.expect(responseJSON).to.have.property('id');",
											"    pm.expect(responseJSON).to.have.property('firstName');",
											"    pm.expect(responseJSON).to.have.property('lastName');",
											"    pm.expect(responseJSON).to.have.property('email');",
											"});",
											"",
											"pm.test(\"response must be valid and have a body\", function() {",
											"    pm.response.to.be.ok;",
											"    pm.response.to.be.withBody;",
											"    pm.response.to.be.json;",
											"})",
											"var schema = {",
											"    \"items\": {",
											"        \"type\": \"string\"",
											"    }",
											"};",
											"",
											"var data1 = \"asdf\";",
											"var data2 = \"asdf\";",
											"",
											"pm.test('Schema is valid', function () {",
											"    pm.expect(tv4.validate(data1, schema)).to.be.string;",
											"    pm.expect(tv4.validate(data2, schema)).to.be.true;",
											"});",
											"",
											"",
											"",
											"",
											"",
											""
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"email\": \"Angyrbanasdfasdasdff03@mail.ru\",\r\n    \"password\": \"Bahahay1237\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/accounts/1",
									"host": [
										"{{ip}}"
									],
									"path": [
										"accounts",
										"1"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Delete",
					"item": [
						{
							"name": "403 not your acc",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 403\", function () {\r",
											"    pm.response.to.have.status(403);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{ip}}/accounts/5",
									"host": [
										"{{ip}}"
									],
									"path": [
										"accounts",
										"5"
									]
								}
							},
							"response": []
						},
						{
							"name": "403 acc not exist",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 403\", function () {\r",
											"    pm.response.to.have.status(403);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "localhost:3000/accounts/12341",
									"host": [
										"localhost"
									],
									"port": "3000",
									"path": [
										"accounts",
										"12341"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 param fail",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{ip}}/accounts/0",
									"host": [
										"{{ip}}"
									],
									"path": [
										"accounts",
										"0"
									]
								}
							},
							"response": []
						},
						{
							"name": "New Request Copy 2",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 404\", function () {\r",
											"    pm.response.to.have.status(404);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{ip}}/accounts/1423",
									"host": [
										"{{ip}}"
									],
									"path": [
										"accounts",
										"1423"
									]
								}
							},
							"response": []
						},
						{
							"name": "New Request Copy 3",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{ip}}/accounts/1423",
									"host": [
										"{{ip}}"
									],
									"path": [
										"accounts",
										"1423"
									]
								}
							},
							"response": []
						}
					]
				}
			]
		},
		{
			"name": "region",
			"item": [
				{
					"name": "Post",
					"item": [
						{
							"name": "401 auth fail",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 401\", function () {\r",
											"    pm.response.to.have.status(401);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"Name\":\"Novosibirsk\",\r\n    \"ParentRegion\":\"\",\r\n    \"RegionType\":1,\r\n    \"Latitude\":12.06,\r\n    \"Longitude\":1412341231.00\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/region/1",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"1"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 latitude null",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"Name\":\"Novosibirsk\",\r\n    \"ParentRegion\":\"asdf\",\r\n    \"RegionType\":1,\r\n    \"Latitude\":,\r\n    \"Longitude\":11.01\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/region",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 longitude null Copy",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"Name\":\"Novosibirsk\",\r\n    \"ParentRegion\":\"asdf\",\r\n    \"RegionType\":1,\r\n    \"Latitude\":0,\r\n    \"Longitude\":\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/region",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region"
									]
								}
							},
							"response": []
						},
						{
							"name": "409",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 409\", function () {\r",
											"    pm.response.to.have.status(409);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"Name\":\"Krasn\",\r\n    \"ParentRegion\":\"Krasn\",\r\n    \"RegionType\":1,\r\n    \"Latitude\":-1234,\r\n    \"Longitude\":1234\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/region",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "GET",
					"item": [
						{
							"name": "200",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 200\", function () {\r",
											"    pm.response.to.have.status(200);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{ip}}/region/180",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"180"
									]
								}
							},
							"response": []
						},
						{
							"name": "404",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 404\", function () {\r",
											"    pm.response.to.have.status(404);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{ip}}/region/1594132",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"1594132"
									]
								}
							},
							"response": []
						},
						{
							"name": "400",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{ip}}/region/0",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"0"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "DELETE",
					"item": [
						{
							"name": "400",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{ip}}/region/179",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"179"
									]
								}
							},
							"response": []
						},
						{
							"name": "404",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 404\", function () {\r",
											"    pm.response.to.have.status(404);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{ip}}/region/4123412",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"4123412"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 has parent reg",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{ip}}/region/176",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"176"
									]
								}
							},
							"response": []
						}
					]
				}
			]
		},
		{
			"name": "regionType",
			"item": [
				{
					"name": "Post",
					"item": [
						{
							"name": "201",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 201\", function () {\r",
											"    pm.response.to.have.status(201);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"type\":\"south\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/region/types",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"types"
									]
								}
							},
							"response": []
						},
						{
							"name": "409",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 409\", function () {\r",
											"    pm.response.to.have.status(409);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"type\":\"west\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/region/types",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"types"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 null",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"type\":\"\"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/region/types",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"types"
									]
								}
							},
							"response": []
						},
						{
							"name": "400 space",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"type\":\"   \"\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{ip}}/region/types",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"types"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Get",
					"item": [
						{
							"name": "400",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 400\", function () {\r",
											"    pm.response.to.have.status(400);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{ip}}/another",
									"host": [
										"{{ip}}"
									],
									"path": [
										"another"
									]
								}
							},
							"response": []
						},
						{
							"name": "404",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Status code is 404\", function () {\r",
											"    pm.response.to.have.status(404);\r",
											"});"
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{ip}}/region/types/123412",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"types",
										"123412"
									]
								}
							},
							"response": []
						},
						{
							"name": "200",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.variables.get(\"1\");",
											"",
											"pm.test(\"Response status code is 200\", function () {",
											"    pm.response.to.have.status(200);",
											"});",
											"",
											"",
											"pm.test(\"Response time is less than 200ms\", function () {",
											"  pm.expect(pm.response.responseTime).to.be.below(200);",
											"});",
											"",
											"",
											"pm.test(\"Presence of id and type fields and their data types\", function () {",
											"    const responseData = pm.response.json();",
											"    ",
											"    pm.expect(responseData).to.be.an('object');",
											"    pm.expect(responseData).to.have.property('id').that.is.a('number');",
											"    pm.expect(responseData).to.have.property('type').that.is.a('string');",
											"});",
											"",
											""
										],
										"type": "text/javascript",
										"packages": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{ip}}/region/types/1",
									"host": [
										"{{ip}}"
									],
									"path": [
										"region",
										"types",
										"1"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Delete",
					"item": []
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "ip",
			"value": "localhost"
		},
		{
			"key": "session_cookie",
			"value": "id=1",
			"type": "string"
		},
		{
			"key": "port",
			"value": "80",
			"type": "string"
		}
	]
}